#ifndef OSD_H
#define OSD_H


#include "guiz.h"

class OSD {

	public:

		void initOSD(int w, int h);
		void initOSD(int w, int h, int moonViewHeight);
		void drawOSD();
		bool checkClick(int button, int state, int x, int y);
		void checkDrag(int x, int y);
		bool isTarget();

	private:

		GUIZ gui;
		int mvh;
		bool targeting;

		//map to hold pointers to button funcs
		map<int, void*(OSD::*)(void*)>butFuncs;

		void* populationButtonFunc(void*);
		void* researchButtonFunc(void*);
		void* productionButtonFunc(void*);
		void* targetButtonFunc(void*);

		void* popOrgyDecBut(void*);
		void* popOrgyIncBut(void*);
		void* popResearchDecBut(void*);
		void* popResearchIncBut(void*);
		void* popProdDecBut(void*);
		void* popProdIncBut(void*);

		void* prodRdMissleBut(void*);
		void* prodRdShieldBut(void*);

		void* prodProdMissleBut(void*);
		void* prodProdShieldBut(void*);

};


#endif   /* OSD_H */